home *** CD-ROM | disk | FTP | other *** search
/ By Popular Request 2.0 / By Popular Request 2.0 (Arsenal Computer).ISO / amiga_2 / cp4_beta.lha / CP4 / Upgrade_CP3.5_To_CP4.0 < prev    next >
Text File  |  1995-03-24  |  10KB  |  415 lines

  1. ;Installer V3 For AmiTCP Control Panel V4.0
  2. ;
  3. ;⌐Martin Hunt 1995
  4. ;
  5. ;
  6. ; Add Status On or Off Choice
  7.  
  8. (complete 0)
  9.  
  10. (set amitcpdir
  11.    (askdir
  12.        (prompt "Where is AmiTCP installed?")
  13.        (help @askdir-help)
  14.        (default "dh1:amitcp")
  15.    )
  16. )
  17.  
  18. (makeassign "amitcp" amitcpdir)
  19.  
  20.  
  21.  
  22. (set @default-dest
  23.    (askdir
  24.        (prompt "Where is AmiTCP Control Panel Installed?")
  25.        (help @askdir-help)
  26.        (default "sys:wbstartup")
  27.    )
  28. )
  29.  
  30. (copyfiles
  31.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  32.    (help @copyfiles-help)
  33.    (source "cp_MainProg")
  34.    (dest @default-dest)
  35.    (all)
  36.    (infos)
  37.    (confirm)
  38. )
  39.  
  40.  
  41. (set @doc-dest
  42.    (askdir
  43.        (prompt "Where do you want to install AmiTCP Control Panel's Documents?")
  44.        (help @askdir-help)
  45.        (default "amitcp:docs")
  46.    )
  47. )
  48.  
  49.  
  50. (copyfiles
  51.    (prompt "Copying AmiTCP Control Panel Docs to " @doc-dest )
  52.    (help @copyfiles-help)
  53.    (source "docs")
  54.    (all)
  55.    (dest @doc-dest)
  56.    (infos)
  57.    (confirm)
  58. )
  59.  
  60. (copyfiles
  61.    (prompt "Copying AmiTCP Control Panel Scripts and Commands to AmiTCP:bin" )
  62.    (help @copyfiles-help)
  63.    (source "bin")
  64.    (all)
  65.    (dest "Amitcp:bin")
  66.    (infos)
  67.    (confirm)
  68. )
  69. (set left
  70.     (asknumber
  71.        (prompt "Enter How Far From The Left \n Of The Screen Do You Want \n Control Panel To Appear")
  72.        (help @asknumber-help)
  73.        (range 0 1200)
  74.        (default 20)
  75.     )
  76. )
  77.  
  78. (set top
  79.     (asknumber
  80.        (prompt "Enter How Far Down The Screen \n Do You Want Control Panel To Appear")
  81.        (help @asknumber-help)
  82.        (range 0 600)
  83.        (default 30)
  84.     )
  85. )
  86.  
  87. (set device1
  88.    (askbool
  89.       (prompt "Select The Device\n You Use To\nConnect To The Net\nThis Is Usually\n\nSLIP")
  90.       (default 1)
  91.       (choices "SLIP" "PPP")
  92.       (help "IF Not Sure It Is Probably SLIP")
  93.    )  
  94. )
  95.  
  96. (if(= device1 1)
  97.    (set DEVICE ("DEVICE = SLIP\n"))
  98.    (set DEVICE ("DEVICE = PPP\n"))
  99. )
  100.  
  101. (set Status1
  102.    (askbool
  103.       (prompt "\nDo You Want\nControl Panel\nStatus Information")
  104.       (default 1)
  105.       (choices "YES" "NO")
  106.       (help "Oh dear, just make a decsion!")
  107.    )
  108. )
  109.  
  110. (if(= Status1 1)
  111.    (set STATUS ("STATUS = YES\n"))
  112.    (set STATUS ("STATUS = NO\n"))
  113. )
  114.  
  115. (message "\nControl Panel V4 runs various programs.\nAs everybodies Amitcp set up varies\nit is necessary to configure the particular\n programs you are using.\n")
  116. (set link
  117.    (askfile
  118.       (prompt "What Script Do You Use To Connect To The Net?")
  119.       (help @askfile-help)
  120.       (default "amitcp:bin/link_gui.exe")
  121.    )
  122. )
  123.  
  124. ;{add options}
  125. (message "Control Panel V4\n has 2 buttons and 5 menu items\n which can be configured by the user,\n\n If you do not require these options\n just keep pressing proceed")
  126. (set option1Text
  127.    (askstring
  128.       (prompt "Enter Menu and Button Text For Option 1/nIt Must Consist Of 1 Word Only")
  129.       (help @askstring-help)
  130.       (default "")
  131.    )
  132. )
  133. (set option1prog
  134.    (askfile
  135.       (prompt "Which Program Should This Option Run?")
  136.       (help @askfile-help)
  137.       (default " ")
  138.    )
  139. )
  140. (set option2Text
  141.    (askstring
  142.       (prompt "Enter Menu and Button Text For Option 2\nIt Must Consist Of 1 Word Only")
  143.       (help @askstring-help)
  144.       (default "")
  145.    )
  146. )
  147. (set option2prog
  148.    (askfile
  149.       (prompt "Which Program Should This Option Run?")
  150.       (help @askfile-help)
  151.       (default " ")
  152.    )
  153. )
  154. (set option3Text
  155.    (askstring
  156.       (prompt "Enter Menu Text For Option 3\nIt Must Consist Of 1 Word Only")
  157.       (help @askstring-help)
  158.       (default " ")
  159.    )
  160. )
  161. (set option3prog
  162.    (askfile
  163.       (prompt "Which Program Should This Option Run?")
  164.       (help @askfile-help)
  165.       (default " ")
  166.    )
  167. )
  168. (set option4Text
  169.    (askstring
  170.       (prompt "Enter Menu Text For Option 4\nIt Must Consist Of 1 Word Only")
  171.       (help @askstring-help)
  172.       (default " ")
  173.    )
  174. )
  175. (set option4prog
  176.    (askfile
  177.       (prompt "Which Program Should This Option Run?")
  178.       (help @askfile-help)
  179.       (default " ")
  180.    )
  181. )
  182. (set option5Text
  183.    (askstring
  184.       (prompt "Enter Menu Text For Option 5\nIt Must Consist Of 1 Word Only")
  185.       (help @askstring-help)
  186.       (default " ")
  187.    )
  188. )
  189. (set option5prog
  190.    (askfile
  191.       (prompt "Which Program Should This Option Run?")
  192.       (help @askfile-help)
  193.       (default " ")
  194.    )
  195. )
  196. (message "Control Panel V4\n allows the user details for 4 users to be preset,\n and quickly changed by using a menu.\n\nIf you don't want use this facility\njust keep pressing proceed.")
  197. (set User1Text
  198.    (askstring
  199.       (prompt "Enter Menu Text For User 1\nIt Must Consist Of 1 Word Only")
  200.       (help @askstring-help)
  201.       (default "")
  202.    )
  203. )
  204. (set user1name
  205.    (askstring
  206.       (prompt "Enter the User Name of User 1\nThis Must Consist Of One Word Only")
  207.       (help @askstring-help)
  208.       (default "")
  209.    )
  210. )
  211. (set user1realname
  212.    (askstring
  213.       (prompt "Enter the Real Name of User 1")
  214.       (help @askstring-help)
  215.       (default "")
  216.    )
  217. )
  218.  
  219. (set User2Text
  220.    (askstring
  221.       (prompt "Enter Menu Text For User 2\nIt Must Consist Of 1 Word Only")
  222.       (help @askstring-help)
  223.       (default "")
  224.    )
  225. )
  226. (set user2name
  227.    (askstring
  228.       (prompt "Enter the User Name of User 2\nThis Must Consist Of One Word Only")
  229.       (help @askstring-help)
  230.       (default "")
  231.    )
  232. )
  233. (set user2realname
  234.    (askstring
  235.       (prompt "Enter the Real Name of User 2")
  236.       (help @askstring-help)
  237.       (default "")
  238.    )
  239. )
  240. (set User3Text
  241.    (askstring
  242.       (prompt "Enter Menu Text For User 3\nIt Must Consist Of 1 Word Only")
  243.       (help @askstring-help)
  244.       (default "")
  245.    )
  246. )
  247. (set user3name
  248.    (askstring
  249.       (prompt "Enter the User Name of User 3\nThis Must Consist Of One Word Only")
  250.       (help @askstring-help)
  251.       (default "")
  252.    )
  253. )
  254. (set user3realname
  255.    (askstring
  256.       (prompt "Enter the Real Name of User 3")
  257.       (help @askstring-help)
  258.       (default "")
  259.    )
  260. )
  261. (set User4Text
  262.    (askstring
  263.       (prompt "Enter Menu Text For User 4\nIt Must Consist Of 1 Word Only")
  264.       (help @askstring-help)
  265.       (default "")
  266.    )
  267. )
  268. (set user4name
  269.    (askstring
  270.       (prompt "Enter the User Name of User 4\nThis Must Consist Of One Word Only")
  271.       (help @askstring-help)
  272.       (default "")
  273.    )
  274. )
  275. (set user4realname
  276.    (askstring
  277.       (prompt "Enter the Real Name of User 4")
  278.       (help @askstring-help)
  279.       (default "")
  280.    )
  281. )
  282. (message "Control Panel V4\nAllows You To Change The Pop You Use\nBy Selecting A Menu option\n\nIf You Do Not require This Option \nJust Keep Pressing Proceed")
  283. (set pop1text
  284.    (askstring
  285.       (prompt "Enter The Menu Text For POP1\nThis Must Consist Of One Word Only")
  286.       (help @askstring-help)
  287.       (default "")
  288.    )
  289. )
  290. (set pop1file
  291.    (askfile
  292.       (prompt "What Dialscript Is Used To Dial This POP")
  293.       (help @askfile)
  294.       (default "")
  295.    )
  296. )
  297. (set pop2text
  298.    (askstring
  299.       (prompt "Enter The Menu Text For POP2\nThis Must Consist Of One Word Only")
  300.       (help @askstring-help)
  301.       (default "")
  302.    )
  303. )
  304. (set pop2file
  305.    (askfile
  306.       (prompt "What Dialscript Is Used To Dial This POP")
  307.       (help @askfile)
  308.       (default "")
  309.    )
  310. )
  311. (set pop3text
  312.    (askstring
  313.       (prompt "Enter The Menu Text For POP3\nThis Must Consist Of One Word Only")
  314.       (help @askstring-help)
  315.       (default "")
  316.    )
  317. )
  318. (set pop3file
  319.    (askfile
  320.       (prompt "What Dialscript Is Used To Dial This POP")
  321.       (help @askfile)
  322.       (default "")
  323.    )
  324. )
  325.  
  326.  
  327. (complete 80)
  328. (Set intro1 "; Control Panel Configuration File\n")
  329. (Set intro2 "; CPv4.0 23/3/95\n; Upgraded From Version 3.5\n")
  330. (set blankline "\n")
  331. (Set intro3 "; Requester Position\n")
  332. (set leftpos ("LEFT = %ld \n" left))
  333. (set toppos ("TOP = %ld \n" top))
  334. (set intro4 "; Where Is AmiTCP stored?\n")
  335. (set amitcpdirt ("AMITCPDIR = %s \n" amitcpdir))
  336. (set Intro5 "; Programs Used By Control Panel\n")
  337. (set linkprog ("Link = %s \n" link))
  338. (set tracerouteprog ("TRACEROUTE = Amitcp:bin/ping.traceroute.exe\n"))
  339. (set pingprog ("PING = AMITCP:bin/ping.traceroute.exe\n"))
  340. (set archieprog ("ARCHIE = Amitcp:bin/archie_gui.exe\n"))
  341. (set fingerprog ("FINGER = Amitcp:bin/finger_gui.exe\n"))
  342. (set autoprog ("AUTO = AMITCP:bin/auto.exe\n"))
  343. (Set NewsEdProg ("NEWSEDPROG = %s \n" NewsEd))
  344. (set UserOptions ("; Control Panel User Options\n"))
  345. (set option1 ("OPTION1 = %s %s\n" option1text option1prog))
  346. (set option2 ("OPTION2 = %s %s\n" option2text option2prog))
  347. (set option3 ("OPTION3 = %s %s\n" option3text option3prog))
  348. (set option4 ("OPTION4 = %s %s\n" option4text option4prog))
  349. (set option5 ("OPTION5 = %s %s\n" option5text option5prog))
  350. (set Users ("; Control Panel Users\n"))
  351. (set user1 ("USER1 = %s %s %s \n" user1text user1name user1realname))
  352. (set user2 ("USER2 = %s %s %s \n" user2text user2name user2realname))
  353. (set user3 ("USER3 = %s %s %s \n" user3text user3name user3realname))
  354. (set user4 ("USER4 = %s %s %s \n" user4text user4name user4realname))
  355. (set Pops ("; Control Panel Pop's\n"))
  356. (set pop1 ("POP1 = %s %s\n" pop1text pop1file))
  357. (set pop2 ("POP2 = %s %s\n" pop2text pop2file))
  358. (set pop3 ("POP3 = %s %s\n" pop3text pop3file))
  359. (set endofconfig "; End Of Control Panel Config File")
  360. (complete 90)
  361. (textfile
  362.    (dest "s:cp.config")
  363.    (append intro1)
  364.    (append intro2)
  365.    (append blankline)
  366.    (include "s:cp.config")
  367.    (append blankline)
  368.    (append intro3)
  369.    (append leftpos)
  370.    (append toppos)
  371.    (append blankline)
  372.    (append Intro4)
  373.    (append amitcpdirt)
  374.    (append blankline)
  375.    (append device)
  376.    (append blankline)
  377.    (append status)
  378.    (append blankline)
  379.    (append intro5)
  380.    (append linkprog)
  381.    (append mailprog)
  382.    (append newsprog)
  383.    (append ftpprog)
  384.    (append wwwprog)
  385.    (append gopherprog)
  386.    (append ircprog)
  387.    (append pingprog)
  388.    (append tracerouteprog)
  389.    (append autoprog)
  390.    (append archieprog)
  391.    (append fingerprog)
  392.    (append uudecoderprog)
  393.    (append dearchiverprog)
  394.    (append newsedprog)
  395.    (append blankline)
  396.    (append useroptions)
  397.    (append option1)
  398.    (append option2)
  399.    (append option3)
  400.    (append option4)
  401.    (append option5)
  402.    (append users)
  403.    (append user1)
  404.    (append user2)
  405.    (append user3)
  406.    (append user4)
  407.    (append pops)
  408.    (append pop1)
  409.    (append pop2)
  410.    (append pop3)
  411.    (append endofconfig)
  412. )
  413.  
  414. (complete 100)
  415.